package com.changgou.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

@FeignClient(name = "order")
@RequestMapping("/cart")
public interface CartFeign {
    @GetMapping("/add")
    public com.changgou.entity.Result add(@RequestParam("skuId") String skuId, @RequestParam("num") Integer num);


    @GetMapping("/list")
    public Map list();

}
